<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.sf.net/frails" prefix="fr"%>

<f:view>
	<h:form>
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
			<head>
				<meta http-equiv="pragma" content="no-cache" />
				<meta http-equiv="cache-control" content="no-cache" />
				<meta http-equiv="expires" content="0" />
				<link href="../css/iframe.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<div id="container">
					<div class="titles">
						用户信息
					</div>
					<h:form>
						<div class="userinformation">
							<div>
								<span><h:outputLabel value="#{$bundle.label_user_loginName}"></h:outputLabel> </span>
								<h:inputText value="#{$.loginUser.loginName}" required="true" readonly="true" />
							</div>

							<div>
								<span><h:outputLabel value="#{$bundle.label_user_email}"></h:outputLabel> </span>
								<h:inputText size="" value="#{$.loginUser.email}" required="true" readonly="true" />
							</div>

							<div>
								<span><h:outputLabel value="#{$bundle.label_user_userName}"></h:outputLabel> </span>
								<h:inputText size="" value="#{$.loginUser.userName}" required="true" readonly="true" />
							</div>

							<div>
								<span><h:outputLabel value="#{$bundle.label_user_password}"></h:outputLabel> </span>
								<h:inputText size="" value="#{$.loginUser.password}" required="true" readonly="true" />
							</div>

							<div>
								<span><h:outputLabel value="#{$bundle.label_user_userRole}"></h:outputLabel> </span>
								<h:selectOneMenu required="true" value="#{$.loginUser.userRole}" requiredMessage="you are required" disabled="true"
									readonly="true">
									<f:selectItem value="#{$.roleList}" />
								</h:selectOneMenu>
							</div>

							<div>
								<span><h:outputLabel value="#{$bundle.label_user_phone}"></h:outputLabel> </span>
								<h:inputText size="" value="#{$.loginUser.phone}" required="true" readonly="true" />
							</div>
							<div>
								<h:commandButton value="修改" actionListener="#{$.modify}" />
							</div>
						</div>

					</h:form>

				</div>
			</body>
		</html>
	</h:form>
</f:view>